{% extends 'base.html' %}
{% block content %}
    <div class="col-md-8 ">
        <span> <a href="{% url 'rbac:user_list' %}" class="btn btn-success">用户列表</a></span>
        <div class="panel panel-primary" style="margin-top: 10px">
            <div class="panel-heading">
                {#                        {% for item in request.url_record %}#}
                {#                         <a href="/web{{ item.url }}" style="color: white">{{ item.title }}</a>#}
                {#                        {% endfor %}#}
            </div>
            <form  style="margin-left: 10px" action="" method="post">
                {% csrf_token %}
                <div class="form-group" style="margin-top: 10px">
                    <label for="">用户名</label>
                    <input type="text" class="form-control" name="name" id="=name"><span style="color: red">{{ status.user_msg }}</span>
                </div>
                <div class="form-group" style="margin-top: 10px">
                    <label for="">邮箱</label>
                    <input type="email" class="form-control" name="email" id="=email">
                </div>
                <div class="form-group" style="margin-top: 10px">
                    <label for="">密码</label>
                    <input type="password" class="form-control" name="pwd" id="=pwd">
                </div>
                 <div class="form-group" style="margin-top: 10px">
                    <label for="">确认密码</label>
                    <input type="password" class="form-control" name="re_pwd" id="=re_pwd"><span style="color: red">{{ status.pwd_msg }}</span>
                </div>
                <input type="submit" value="提交" class="btn btn-primary">
            </form>
        </div>
        {#        <form action=""  method="post">#}
        {#        {% csrf_token %}#}
        {#            {% for filed in  form %}#}
        {#                <p><label for="">{{ filed.label }}</label>#}
        {#                    {{ filed }}#}
        {#                </p>#}
        {#            {% endfor %}#}
        {#         <input type="submit" value="确认" class="btn-primary btn">#}
        {#        </form>#}
    </div>
{% endblock content %}